var express = require('express');
var router = express.Router();
var core   = require('core');
/* GET home page. */

var GET = function(req, res, next) {
    var session = req.session;
    console.log(session.user);
    res.render('index', { title: 'Express', user: session.user });
};

router.get('/', GET);
router.get('/index', GET);

module.exports = router;
